package com.example.fresh_fruit;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;


@EnableScheduling //扫描定时器

@MapperScan("com.example.fresh_fruit.mapper")//告诉项目中的Mapper接口路径的位置
@SpringBootApplication
// * @SpringBootApplication相当于3个注解
// * 1. @Configuration  定义一个配置类
//        * 2. @EnableAutoConfiguration spring boot自动根据jar包的依赖来自动配置项目
//        * 3. @ComponentScan  spring自动扫描类上的注解, 并注入spring容器

public class FreshFuritApplication {
    public static void main(String[] args) {
        SpringApplication.run(FreshFuritApplication.class, args);
    }

}
